package BuilderPattern.exercise7_3;

public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public void construct() {
        builder.makeTitle("Greeting");
        builder.makeString("这是一行字符串");
        builder.makeItems(new String[]{
                "列表1.1",
                "列表1.2"
        });
        builder.makeString("又是一行字符串");
        builder.makeItems(new String[]{
                "列表2.1",
                "列表2.2",
                "列表2.3"
        });
        builder.close();
    }
}
